# $Id: PKGBUILD 83122 2013-01-27 16:08:38Z pierre $
# Maintainer: damir <damir@archlinux.org>
# Contributor: Nikos Kouremenos <nk@ebox.gr>

pkgname=bmp-musepack
pkgver=1.2
pkgrel=4
pkgdesc="A BMP plugin for playing sounds in Musepack (MPC) format"
arch=('i686' 'x86_64')
url="http://musepack.net/"
license=('BSD')
depends=('bmp' 'libmpcdec' 'taglib')
groups=('bmp-plugins' 'bmp-io-plugins')
options=('!libtool')
source=("http://files.musepack.net/linux/plugins/${pkgname}-${pkgver}.tar.bz2")
md5sums=('5fe0c9d341ca37d05c780a478f829a5f')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
  install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
